home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Auge 4000 / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).zip / Auge 4000 #47 (1990-06-22)(Amiga User Gruppe Einzugsgebiet 4000).adf / ARP-DOCS1.3 / Eval < prev    next >
Text File  |  1990-06-22  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.      Eval(V1.3)              ARP User's Manual              Eval(V1.3)
  5.  
  6.  
  7.  
  8.      NAME
  9.           Eval - evaluate arithmetic and logical expressions.
  10.  
  11.      SYNOPSIS
  12.           Eval Value1/a Op Value2 TO/k L=LFORMAT/k
  13.  
  14.      DESCRIPTION
  15.           Eval computes the results of simple arithmetic and logical
  16.           expressions as applied to two arguments, and displays the
  17.           result on its standard output. Numeric arguments may be
  18.           input as:
  19.  
  20.           Decimal
  21.                This is the default, no extra qualifiers needed.
  22.  
  23.           Hexadecimal
  24.                Enter hexadecimal numbers as 0x<number> or #x<number>,
  25.                for example:  0x1A or #x1A.
  26.  
  27.           Octal
  28.                Enter octal numbers as 0<number> or #<number>, for
  29.                example: 0777 or #777.
  30.  
  31.           Binary
  32.                Binary numbers (in ARP eval only) may be entered with
  33.                #B, for example:  B1111
  34.  
  35.           Character
  36.                Characters are supported only by the Commodore Eval.
  37.  
  38.           The operations supported are given below:
  39.  
  40.           addition        +         not                    ~
  41.           subtraction     -         left shift            <<
  42.           multiplication  *         right shift           >>
  43.           division        /         negation               -
  44.           mod            mod        exclusive or          xor
  45.           and             &         bitwise equivalence   eqv
  46.           or              |
  47.  
  48.  
  49.      OPTIONS
  50.           TO   You can send the output of Eval to a file. However, it
  51.                is often more useful to use Eval in a shell which
  52.                supports Command substitution (such as the Arp Shell,
  53.                ASH).
  54.  
  55.           L=LFORMAT
  56.                You can control the output format of Eval using this
  57.                keyword.  Note that ARP's Eval uses only C style format
  58.                commands, while the Commodore Eval uses the old
  59.                fashioned BCPL format commands.  ARP intends to add
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/28/89)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      Eval(V1.3)              ARP User's Manual              Eval(V1.3)
  71.  
  72.  
  73.  
  74.                support for the BCPL format commands in a future
  75.                release, while maintaining the modern C style
  76.                formatting.  Any C format command can be used in the
  77.                LFormat string, for example, to display a hexadecimal
  78.                number in a field of 8, you can do LFORMAT="%08lx".
  79.                You can also include escape characters (such as \n for
  80.                a newline) inside your LFORMAT string.  For this
  81.                release of Eval, you also need to always use the 'l'
  82.                (for long) format character with all format commands.
  83.  
  84.      EXAMPLE
  85.           There is a good example of Eval and command substitution in
  86.           the Ash Manual.
  87.  
  88.      SEE ALSO
  89.           AshManual, C Language reference.
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/28/89)
  130.  
  131.  
  132.  
  133.